#include<stdio.h>
#include<pthread.h>
#define NUM_OF_THREAD 2;
void* print_message(void*);

void *print_message(void *data)
{
int thread_number;
thread_number = (int)data;
int i=0;
while(i<50)
{
printf("Thread Number %d \n",thread_number);
sleep(2*thread_number);
i=i++;
}
pthread_exit(NULL);
}


void main()
{
pthread_t thread1,thread2;
int i=1;
pthread_create(&thread1,NULL,print_message,(void *) i);
pthread_create(&thread1,NULL,print_message,(void *) i+1);
pthread_exit(NULL);

}

